import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'
import 'default-passive-events'
import "@/mock/index";
import '@/common/styles/index.scss'

import { Tab, Tabs, Popup, Swipe, SwipeItem, Image as VanImage, Lazyload, NavBar, Search,List } from 'vant';


const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
app.use(router);
app.use(Tab);
app.use(Tabs);
app.use(Popup);
app.use(Swipe);
app.use(SwipeItem);
app.use(VanImage);
app.use(Lazyload);
app.use(NavBar)
app.use(Search)
app.use(List)

app.mount('#app')
// import TypeNav from '@/components/common/TypeNav'
// app.component(TypeNav.name,TypeNav)